package sctu.edu.java.year2016.team04.luoxinghua.day20160605.chapter11_2;

/**
 * Created by 落叶的思恋 on 2016/6/5.
 *建立一个number类在建立count方法输出两个数相除的结果； 用try catch输出可能发生的异常
 */
public class Number {
   float count(float aa,float bb){
       System.out.println(aa+"*"+bb+"="+aa*bb);
       return 1;
    }
    public static void main(String[] args) {
Number number=new Number();
        try{
           number.count(45,56);
}catch (Exception ex){
ex.printStackTrace();
            System.out.println("ex.getMessage()d的方法是" + ex.getMessage());
            System.out.println("输入异常");
    }
        System.out.println("over");
    }

}
